<select class="duallistbox"  style="height:300px" name="hostnames" multiple="multiple">
    <th:block th:each="item,iterStat : ${systemInfoList}">
        <th:block th:if="${item.remark} == null or ${item.remark} == ''">
            <th:block th:if="${item.selected} == null or ${item.selected} == ''">
                <option  th:value="${item.hostname}" th:text="${item.hostname}">Alabama</option>
            </th:block>
            <th:block th:if="${item.selected} == 'selected'">
                <option  th:value="${item.hostname}" selected th:text="${item.hostname}">Alabama</option>
            </th:block>
        </th:block>
        <th:block th:if="${item.remark} != null and ${item.remark} != ''">
            <th:block th:if="${item.selected} == null or ${item.selected} == ''">
                <option  th:value="${item.hostname}" th:text="${item.hostname}+'('+${item.remark}+')'">Alabama</option>
            </th:block>
            <th:block th:if="${item.selected} == 'selected'">
                <option  th:value="${item.hostname}" selected th:text="${item.hostname}+'('+${item.remark}+')'">Alabama</option>
            </th:block>
        </th:block>
    </th:block>
</select>